import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/mockMessage',
    children: [
      {
        path: 'mockMessage',
        name: 'mockMessage',
        component: () => import('@/views/mockMessage.vue'),
        meta: {
          keepAlive: true,
          title: 'mockMessage'
        }
      },
      {
        path:'about',
        name:'about',
        component: () => import('@/views/about.vue'),
        meta: {
          keepAlive: false,
          title:'about'
        }
      }
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})
export default router
